<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('index')}">{:lang('ADMIN_SETTING_INDEX')}</a></li>
        <li><a href="{:url('add')}">{:lang('ADMIN_SETTING_ADD')}</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('index')}">
            游戏KEY:
            <input type="text" class="form-control" name="config_key" style="width: 120px;" value="{:input('request.config_key/s','')}" placeholder="请输入游戏KEY">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('index')}">清空</a>
    </form>
    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th width="50">游戏KEY</th>
            <th width="60">游戏名</th>
            <th width="30">状态</th>
            <th width="30">规则</th>
            <th width="20">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.config_key}</td>
                <td>{$vo.config_name}</td>
                <td><if condition="$vo.enable_i"><span class="text-success">开启</span><else/><span class="text-warning">禁用</span></if></td>
                <td><a href="{:url('editValide',array('id'=>$vo['id']))}" >查看规则</a></td>
                <td>
                    <a href="{:url('edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                    <a href="{:url('delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
                </td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
        <tr>
            <th width="50">ID</th>
            <th width="50">游戏KEY</th>
            <th width="60">游戏名</th>
            <th width="30">状态</th>
            <th width="30">规则</th>
            <th width="20">{:lang('ACTIONS')}</th>
        </tr>
        </tfoot>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>